package com.infocollect.project.api.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

@ApiModel("保存表单信息")
@Data
public class FromSaveInfoReq {
    @ApiModelProperty("fromID")
    private  Long id;
    @NotEmpty(message = "表单名称不能为空")
    @NotBlank(message = "表单名称不能为空")
    @ApiModelProperty("表单名称")
    private  String fromName;
    @ApiModelProperty("表单备注信息")
    private  String fremarks;
    @ApiModelProperty("设计类型")
    private  String designType;
    @ApiModelProperty("表单内容")
    private  String fromcontent;
    @ApiModelProperty("表单设计内容")
    private  String fromdesignjson;
    @ApiModelProperty("表单对应表名")
    private  String fromTableName;
    @ApiModelProperty("弹出层的宽度设置")
    private  String  dialogwidth;
    @ApiModelProperty("开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;
    @ApiModelProperty("结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  Date  endDate;
    @ApiModelProperty("白名单")
    private  String  isWhite;
    @ApiModelProperty("允许修改")
    private  String  isModify;
    @ApiModelProperty("允许填报")
    private  String  isInput;
    @ApiModelProperty("提交截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyEndDate;
    @ApiModelProperty("显示截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private  Date  showEndDate;
    @ApiModelProperty("是否网上确认")
    private  String  isNetconfirm;

}
